.PHONY:all
all:consume_client publish_client

consume_client:consume_client.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -o $@ $^ -I../mqthird/include -L/usr/local/bin/ -L../mqthird/lib -lgtest /usr/local/lib/libprotobuf.so.31 -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz 

publish_client:publish_client.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -o $@ $^ -I../mqthird/include -L/usr/local/bin/ -L../mqthird/lib -lgtest /usr/local/lib/libprotobuf.so.31 -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz 

.PHONY:clean
clean:
	rm -f publish_client consume_client